
export function getHttpCodes() {
  return [
    // httpCode400
    { httpCode: 400, dataCode: 4200, tipType: 'tip', desc: 'error parameter', tip: '参数错误' },
    { httpCode: 400, dataCode: 4200, tipType: 'tip', desc: 'account already exists', tip: '账号已存在' },
    { httpCode: 400, dataCode: 4200, tipType: 'tip', desc: 'This role already exists', tip: '角色已存在' },
    { httpCode: 400, dataCode: 4200, tipType: 'tip', desc: 'this record is already exsists', tip: '记录已经存在' },
    { httpCode: 400, dataCode: 4200, tipType: 'tip', desc: 'Cannot duplicate name under the same parent organization', tip: '不能在同一上级组织下重复名称' },
    { httpCode: 400, dataCode: 4201, tipType: 'tip', desc: 'error parameter with duplicate key', tip: '违反唯一约束' },
    { httpCode: 400, dataCode: 4200, tipType: 'tip', desc: '版本号重复', tip: '版本号重复' },

    // httpCode401
    { httpCode: 401, dataCode: 4100, tipType: 'dialog', desc: 'authoriz error', tip: '很抱歉，没有权限，请联系管理员' },
    { httpCode: 401, dataCode: 4103, tipType: 'dialog', desc: 'token is null error', tip: '身份为空或未登录' },
    { httpCode: 401, dataCode: 4104, tipType: 'dialog', desc: 'token is invalid error', tip: '身份失效，请重新登录' },
    { httpCode: 401, dataCode: 4105, tipType: 'dialog', desc: 'user locked', tip: '账号被锁定，请联系管理员' },

    // httpCode404
    { httpCode: 404, dataCode: 4400, tipType: 'tip', desc: 'not found', tip: '资源存在错误' },
    { httpCode: 404, dataCode: 4401, tipType: 'tip', desc: 'error not found', tip: '资源找不到' },

    // httpCode405
    { httpCode: 405, dataCode: 4500, tipType: 'tip', desc: 'not supported', tip: '不支持错误' },
    { httpCode: 405, dataCode: 4501, tipType: 'tip', desc: 'method not supported', tip: '方法不支持' },

    // httpCode500
    { httpCode: 500, dataCode: 5000, tipType: 'tip', desc: 'server error', tip: '抱歉，服务器错误' }
  ]
}
